package com.github.wxpay.sdk.budo;

import java.io.InputStream;

import com.github.wxpay.sdk.IWXPayDomain;
import com.github.wxpay.sdk.WXPayConfig;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author limingwei
 */
@Getter
@Setter
@NoArgsConstructor
public class BudoWXPayConfig extends WXPayConfig {
    private String appID;

    private String mchID;

    private String key;

    private InputStream certStream;

    public BudoWXPayConfig(String appId, String mchId, String apiKey) {
        this.appID = appId;
        this.mchID = mchId;
        this.key = apiKey;
    }

    @Override
    public String getAppID() {
        return this.appID;
    }

    @Override
    public String getMchID() {
        return this.mchID;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public IWXPayDomain getWXPayDomain() {
        return new BudoIWXPayDomain();
    }

    @Override
    public InputStream getCertStream() {
        return this.certStream;
    }
}